package com.example.toolproject.demo.domain;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.metadata.BaseRowModel;
import com.example.toolproject.demo.util.excel.Convert;
import lombok.Data;
import org.apache.ibatis.type.Alias;

/**
 * @ClassName DataSearcher
 * @Description TODO   数据信息
 * @Author lvyongwei
 * @Date 2020-06-19 13:19
 **/
@Data
@Alias("dataSearch")
public class DataSearch extends BaseRowModel {

    /**
     * 数据id
     */
    @ExcelIgnore
    private Long id;
    /**
     * 数据名称
     */
    @ExcelProperty(index = 0 , value = "数据名称")
    @ColumnWidth(25)
    private String name;
    /**
     * 数据类型
     */
    @ColumnWidth(25)
    @ExcelProperty(index = 1 , value = "数据类型", converter = Convert.class)
    private int type;
    /**
     * 数据简介
     */
    @ColumnWidth(25)
    @ExcelProperty(index = 2 , value = "数据简介")
    private String abstracts;
    /**
     * 数据详情
     */
    @ColumnWidth(25)
    @ExcelProperty(index = 3 , value = "数据详情")
    private String introductory;

    @ExcelIgnore
    private int status;


    /**
     * 用来记录是谁导入的文化资源信息
     */
    /**
     * 用户id
     */
    @ExcelIgnore
    private int userId;

    /**
     * 用户角色
     */
    @ExcelIgnore
    private int roleId;

}
